-- GENERATED SPELL FOR [Mariner Stillwake] --


function spell0_25022(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25022', 5310, 1)
end

function Sorts_25022(pUnit, Event)
local choix_sorts_25022 = math.random(0, 0)
if choix_sorts_25022 == 0 then
pUnit:RegisterEvent('spell0_25022', 1, 1)
end
end

function mob25022_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25022', math.random(1500, 3000), 1)
end

function mob25022_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25022_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25022_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25022, 1, 'mob25022_Action')
RegisterUnitEvent(25022, 2, 'mob25022_Leave')
RegisterUnitEvent(25022, 3, 'mob25022_Kill')
RegisterUnitEvent(25022, 4, 'mob25022_Die')
